<?php
/*
Module latest news for joomla 1.5
Slice effect by Jquery
Develope by Tranquang
At Vinazoom co., Ltd
website:  www.vinazoom.com
License GNU/GPL
*/

// no direct access
defined('_JEXEC') or die('Restricted access');


require_once (dirname(__FILE__).DS.'helper.php');
$css=JURI::base().'modules/mod_vnz_latestnews/css/style.css';
$document = &JFactory::getDocument();
JHTML::stylesheet('',$css);
$w_slice			=	@$params->get( 'w_slice', '' );

if($w_slice != ''){
	$w_slice = "width='".$w_slice."'";
	
}
$h_slice			=	@$params->get( 'h_slice', '' );
if($h_slice != ''){
	$h_slice = "height='".$h_slice."'";
}
$w_image			=	@$params->get( 'w_image', '' );
if($w_image != ''){
	$w_image = "width='".$w_image."'";
}
$h_image			=	@$params->get( 'h_image', '' );
if($h_image != ''){
	$h_image = "height='".$h_image."'";
}
$duration			=	@$params->get( 'duration', '0' );
$maxChar			=	@$params->get( 'max_char', '0' );

$list = modVNZLatestNewsFrHelper::getList($params);

require(JModuleHelper::getLayoutPath('mod_vnz_latestnews'));